package com.chinatsp.exception;

public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    /**
     * 返回状态.
     */
    private String resp_status = ERR;

    /**
     * 错误码.
     */
    private String error_code;

    /**
     * 提示信息.
     */
    private String error_desc;

    public final static String ERR = "ERR";

    public BusinessException(String error_code, String error_desc) {
        super(error_desc);
        this.error_code = error_code;
        this.error_desc = error_desc;
    }

    public String getResp_status() {
        return resp_status;
    }

    public void setResp_status(String resp_status) {
        this.resp_status = resp_status;
    }

    public String getError_code() {
        return error_code;
    }

    public void setError_code(String error_code) {
        this.error_code = error_code;
    }

    public String getError_desc() {
        return error_desc;
    }

    public void setError_desc(String error_desc) {
        this.error_desc = error_desc;
    }

}

